$val =
wave.type ("<wavefile>")
Returns the type of wave file.
Parameters
<wavefile>
Specify the name of the wave file.
Return Value
On success it returns the type of wave file, otherwise returns 0.
Remark
It returns UNKNOWN or 0, when the wave file format does not belong to the following types:
PCM16_8KHz_stereo, PCM16_8KHz, A-law, μ-law, GSM
Example
-
$val = wave.type("welcome.wav")
msgbox($val)
-
The format of welcome.wav is GSM.
$val contains GSM.